<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>检查完成</title>
	<link rel="stylesheet" href="/css/style.css">
	<link rel="stylesheet" href="/css/esignDemo.css" />
	<script src="/js/jquery-2.1.4.min.js"></script>
	<link href="/css/main.css" rel="stylesheet">
	<script src="/js/laydate.js"></script>
	<link rel="stylesheet" type="text/css" href="/css/jquery.my-modal.1.1.winStyle.css" />
	<script type="text/javascript" src="/js/jquery.my-modal.1.1.js"></script>
</head>
<body style="background: #F2F2F2;">
<div>

	<ul class="noaccord">
		<?php $i = 1 ?>
		@foreach($negatives as $v)
			<li>
				<span>{{$i}}&nbsp;{{$v->content}}</span>
			</li>
				<?php $i++; ?>

			@endforeach

	</ul>

	<p class="turaw">被检查单位负责人签字：</p>
	<div class="canvasDiv">
		<div id="editing_area">
			<canvas width="450" height="250" id="canvasEdit"></canvas>
		</div>
	</div>

	<div class="imgDiv">
		<span id="sign_show"></span>
	</div>

	<div class="btnDiv">
		<a id="sign_clear" class="clearBtn">清除</a>
		<a id="sign_ok" class="okBtn">确认</a>
	</div>
</div>
<div>
	<p class="turaw">检查负责人签字：</p>
	<div class="canvasDiv">
		<div id="editing_areaone">
			<canvas width="450" height="250" id="canvasEditone"></canvas>
		</div>
	</div>

	<div class="imgDiv">
		<span id="sign_showone"></span>
	</div>

	<div class="btnDiv">
		<a id="sign_clearone" class="clearBtn">清除</a>
		<a id="sign_okone" class="okBtn">确认</a>
	</div>
</div>
<div>
	<p class="turaw">获取定位：</p>
	<div id="dcontent" style="margin-bottom: 100px;">

		<div class="button vrae" onclick="getGeocode()">获取当前位置信息</div>

	</div>
	<div id="output">
	</div>
	<form action="/ninecheck/signature" method="post" >
		{{ csrf_field() }}
		<input type="hidden" name="companyId" value="{{$companyId}}">
		<div style="display: none;" class="imgDiv">
			<span id="sign_show"></span>
			<input type="hidden" id="beijiancharen" name="comimgbase">
		</div>
		<div style="display: none;" class="imgDiv">
			<span id="sign_showone"></span>
			<input type="hidden" id="jiancharen" name="userimgbase">
		</div>
		<input type="hidden" name="lat" value="" id="one">
		<input type="hidden" name="lng" value="" id="two">
		<input type="hidden" name="" value="" id="four">
		<input class="qrtj dibuann" type="submit" name="" value="提交">
	</form>
	<div class="main-content">
		<img src="" id="lihailong">
		<!--<iframe src="" id="five"></iframe>-->
	</div>
</div>
<script type="text/javascript" src="/js/immersed.js" ></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript">
	var watchId;
	function geoInf( position ) {
		var dizhi=position.addresses;//获取地址信息
		var codns = position.coords;//获取地理坐标信息；
		var lat = codns.latitude;//获取到当前位置的纬度；
		var longt = codns.longitude;//获取到当前位置的经度
		var ha ="https://restapi.amap.com/v3/staticmap?location="+longt+","+lat+"&zoom=13&size=550*300&markers=mid,,A:"+longt+","+lat+"&key=4cba5031276db6a671290687e176a350";
		document.getElementById("lihailong").src=ha;
		document.getElementById("one").value=lat;
		document.getElementById("two").value=longt;

		document.getElementById("four").value=dizhi;
		document.getElementById("five").src=ha;

	}
	function getPos() {
		outSet( "获取位置信息:" );
		plus.geolocation.getCurrentPosition( geoInf, function ( e ) {
			outSet( "获取位置信息失败："+e.message );
		}, {geocode:false} );
	}
	function watchPos() {
		if ( watchId ) {
			return;
		}
		watchId = plus.geolocation.watchPosition( function ( p ) {
			outSet( "监听位置变化信息:" );
			geoInf( p );
		}, function ( e ) {
			outSet( "监听位置变化信息失败："+e.message );
		}, {geocode:false} );
	}
	function clearWatch() {
		if ( watchId ) {
			outSet( "停止监听位置变化信息" );
			plus.geolocation.clearWatch( watchId );
			watchId = null;
		}
	}
	// 通过定位模块获取位置信息
	function getGeocode(){
		plus.geolocation.getCurrentPosition( geoInf, function ( e ) {
			outSet( "获取定位位置信息失败："+e.message );
		},{geocode:true});
	}
</script>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/1.js"></script>
<script type="text/javascript" src="/js/esign.js"></script>
<script type="text/javascript">
	$(function(){
		//初始化动作，根据DOM的ID不同进行自定义，如果不写则内部默认取这四个
		$().esign("canvasEdit", "sign_show", "sign_clear", "sign_ok");
	});
	$(function(){
		//初始化动作，根据DOM的ID不同进行自定义，如果不写则内部默认取这四个
		$().esignone("canvasEditone", "sign_showone", "sign_clearone", "sign_okone");
	});
</script>
<div style="text-align:center;">

</div>
@include('error.alerts')
</body>
</html>